package com.lzwork.gpt.db.entity;

import com.alibaba.fastjson.JSONObject;
import com.lzwork.web.db.SqlEntity;

import lombok.Getter;
import lombok.Setter;

/**
 * @author LiZheng
 * @date 2023年12月13日 上午10:45:32
 */

@Getter
@Setter
public class AppEntity extends SqlEntity
{
	private static final long serialVersionUID = 1L;

	String appkey;

	String url;

	public void refreshUrl(String server)
	{
		url = server;
		if (!url.endsWith("/"))
			url += "/";
		url += "gpt/callapi?appkey=" + appkey;
	}

	public JSONObject toJObj(Boolean fullInfo)
	{
		// TODO Auto-generated method stub
		return null;
	}

	public void refreshParam()
	{
		// TODO Auto-generated method stub

	}
}
